<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
	    <title></title>
	    <meta charset="utf-8">
	    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
		<link rel="stylesheet" href="../../skin/base.css">
		<link rel="stylesheet" href="tel/tel.css">
        <script src="../../js/zy_control.js"></script>
        <script src="../../js/zy_click.js"></script> 
		<script src="../../js/config.js"></script>
	</head>
	<body>
		<div id="main" class="loading" > </div>
	</body>
	<script>
	zy_init();
	var tel = "";
	
	function calls(str){
		tel = str;
	}
	
	function gettel(){
		var url=app_path+'index.php?m=iappTel&c=app&a=show&id=1';
		uexXmlHttpMgr.open(0,'post',url,"8000");
		uexXmlHttpMgr.send(0);
	}
	
	window.uexOnload=function(type){
		if (!type){
			uexWindow.setBounce("1");
			uexXmlHttpMgr.onData = function(opId, status, data){
				if(status==1){
					$$('main').className='tel_box';
					uexXmlHttpMgr.close(opId);
					data = JSON.parse(data);
					
					var contentHtml='';
					for(i=0;i<data['tels'].length;i++){
						contentHtml+='<h1><span>'+data['tels'][i]['title']+'</span></h1>';
						contentHtml+='<dl>';
						for (k=0; k < data['tels'][i]['items'].length; k++) {
							contentHtml += '<dd ontouchstart="zy_touch(\'down\')" onclick="uexWindow.actionSheet(\''+data['tels'][i]['items'][k][1]+'\',\'取消\',[\'拨打电话\']);">'+
										   '<span>'+data['tels'][i]['items'][k][0]+'<b>'+data['tels'][i]['items'][k][1]+'</b></span></dd>';
						}
		  				contentHtml+='</dl>';
					}
					$$("main").innerHTML=contentHtml;	
					
				}else if(status ==-1) {//加载失败
					uexXmlHttpMgr.close(opId);
					uexWindow.toast("0","5",'加载失败',1000);
				}
			}
		
			uexWindow.cbActionSheet = function(opId,dataType,data){
				if(dataType==2){
					if(data==0){
						uexCall.call(tel);
					}
				}
			}
			
			gettel();
			
		}
	}
	
	</script>
</html>